package com.rockcent.mall.lib.repository;

import com.rockcent.mall.lib.domain.CustomerBank;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by zhangjh on 2016/9/23.
 */
@Repository
public interface CustomerBankRepository extends JpaRepository<CustomerBank, Long>, JpaSpecificationExecutor,CustomerBankRepositoryCustom {
    CustomerBank findByCustomerIdAndBankCard(Long customerId,String bankCard);

    List<CustomerBank> findByCustomerId(Long customerId);
}
